package com.rentalcar.rental_car.dao;

import com.rentalcar.rental_car.entity.Customer;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface CustomerMapper {
    /*
    * 客户信息*/
    List<Customer> getCustomerAll();
    List<Customer> selectByName(Customer customer);
    Customer selectByIdCard(String idCard);
    int update(Customer customer);

    /*登录注册*/
    Customer loginCheck(Customer customer);
    int addCustomer(Customer customer);
    int updateToken(Customer customer);
    int deleteCustomer(Customer customer);

}
